package com.suse.lhw.controller;

import com.suse.lhw.security.service.PHealthrecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ProjectName: health_manage_system
 * @Package: com.suse.lhw.com.suse.lhw.security.controller
 * @ClassName: testController
 * @Description: java类作用描述
 * @Author: 李鸿炜
 * @CreateDate: 2020/4/15 9:02
 * @UpdateUser: 更新者
 * @UpdateDate: 2020/4/15 9:02
 * @UpdateRemark: 更新说明
 * @Version: 1.0
 */
@RestController
@RequestMapping("/test")
public class testController {
    @Autowired
    PHealthrecordService pHealthrecord;

    @GetMapping("/sayhello")
    public String saysheelo() {
        return "hello world!!!!";
    }

    @GetMapping("/addperson")
    public String addperson() {
        return pHealthrecord.selectByPrimaryKey(1).toString();
    }
}
